home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1247 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: btree.is.brooktree.com!usenet
  2. From: sasha@brooktree.com (Alex Bakaev)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: (HUGE) Help!  This bug is killing me!  Anyone have any ideas?
  5. Date: Wed, 10 Jan 1996 03:18:06 GMT
  6. Organization: Brooktree Corporation
  7. Message-ID: <4cvb42$q6l@btree.brooktree.com>
  8. References: <4cjmbt$gaf@maverick.tad.eds.com> <30f254ad.95008793@hector>
  9. NNTP-Posting-Host: komissar.is.brooktree.com
  10.  
  11. Kenn@owl-uk.co.uk (Ken Nicolson) wrote:
  12.  
  13. >fignet05.darrins@eds.com (Darrin Smith) wrote:
  14.  
  15. [deleted]
  16.  
  17. >>void main()
  18.  
  19. >Well, the program is free to crash if you declare main like that, I
  20. >suppose, so the behaviour you are seeing could be consistent...
  21.  
  22. Really ?
  23.  
  24. >> ccun_detail *detail;
  25. >[snip!]
  26. >>      found=fread(detail,sizeof(ccun_detail),1,infile);
  27.  
  28. >No allocation of space for "detail". Go to the bottom of the class.
  29.  
  30. >>Well I've spent 3 days now trying to figure out what is wrong with this 
  31.  
  32. >Three days you've spent? Are you sure you're in the right job?
  33. Should not have offended Mr. Perfect.
  34.  
  35. >Crashing exiting a function is a sure sign that you've got a wayward
  36. >pointer crapping on the stack. This took me two minutes to find,
  37. >without even going near a C compiler.
  38.  
  39. I am just guessing what you can do with a compiler...
  40.  
  41. >I could spend ages commenting on the nightmarish C/C++ hybrid coding,
  42. >but I've got better things to do with my time.
  43.  
  44. Well, that wasn't asked by the original question, so you better do
  45. those better things of yours instead of  pointing out how great you
  46. are.
  47.  
  48. >Ken
  49.  
  50. Alex
  51.  
  52.  
  53.